<?php // no direct access
defined('_JEXEC') or die('Restricted access'); 

$item = $this->item;
$local = $this->local;
$params = $this->params;

?>
<style type="text/css">
	/* ***************************************************************************************************** */
	/* CONTENT CSS */
	
	
	
	p{
		display:block;
		font-size:12px;
	}
	ul{
		font-size:12px;
	}
	li{
		font-size:12px;
	}
	h1{
	font-size: medium;
	font-weight: bold;
	font-size:18px;
	
	}
	H2{
	font-size:14px;
	font-weight:normal;
	}
	
	H3{
	font-size:12px;
	font-weight:normal;
	}
	H4{
	font-size:10px;
	font-weight:normal;
	}H5{
	font-size:8px;
	font-weight:normal;
	}
	
	span{
	font-size:small;
	}
	
	a:link, a:active, a:visited{
	
	}
	a:hover{
	
	}
	hr {
	 /*clear:both;
	 width: 520px;*/
	}
	hr.item_break {
	 clear:both;
	 width: 520px;
	 margin: 0px 0px 5px 0px;
	}
	/* ***************************************************************************************************** */
	/* TEMPLATE SPECIFIC CSS CODE */
	
	a.ann{
		font-size:small;
	}
	
	a.xann{
		font-size:small;
	}

	.results{
		background-color:#66FFFF;
		width: 580px;
		margin: 4px 0px 0px 0px;	
	}
</style>
<div>
	<div class="calendar_detail" style="width:570px;">
		<div style="float:left; width:100px;" >
			<img src="<?php echo $params->get('img_path'); ?>" style="width:100px; " />
		</div>
		<h1 style="float:left; width:450px; margin: 2px 0px 0px 8px; padding: 0px 0px 0px 0px;"><?php echo $item->title." "; ?></h1>
		<div style="float:left; width:450px; margin: 0px 10px 10px 10px; font-family:Arial, Helvetica, sans-serif; font-size:12px;">
			<?php echo $item->introdescription; ?>
		</div>
		<div style="clear:both">
        </div>
	</div>
    <?php
	///////////////////////////
	// TODO: make book detail modular;
	//   should load custom js (specifically for this layout) dynamically with module insertion
	/////////////////////////////
	$isbn = $params->get('img_path', NULL);
	if($isbn){
		require(JPATH_SITE.DS.'components'.DS.'com_calendar'.DS.'views'.DS.'detail'.DS.'tmpl'.DS.'bookstore_detail.php');
	}
	
    //////////////////////////////////////////////////
    // rsgallery api related stuff
    // TODO: make the modular (dynamic insertion)
    //  should adjust parent height to accommodate
    
	if(count($this->gallery) > 0){
		require(JPATH_SITE.DS.'components'.DS.'com_calendar'.DS.'views'.DS.'detail'.DS.'tmpl'.DS.'rsgallery2_detail.php');
	}//end count
	?>
</div>
